package com.ashley.thread.test4;

/**
 * @author ashley
 * @date 2019/9/27-14:36
 */
public class Main1 {
    public static void main(String[] args) {
        MyThread1 myThread = new MyThread1();
        Thread a = new Thread(myThread, "A");
        Thread b = new Thread(myThread, "B");
        Thread c = new Thread(myThread, "C");
        Thread d = new Thread(myThread, "D");
        Thread e = new Thread(myThread, "E");

        Character cxxx = new Character('x');

        int primitive = 1234;

        Integer wrappendInt = new Integer(primitive);
        System.out.println(cxxx);
        System.out.println(wrappendInt);


        a.start();
        b.start();
        c.start();
        d.start();
        e.start();


        Integer m = 0;//new Integer(0);
        Integer n = 0;//new Integer(0);
        Long h = 0L;//new Long(0);//下面哪些表达式返回true
        System.out.println(m == n);
        System.out.println(m.equals(n));
        System.out.println(m.equals(h));
        System.out.println(m.equals(0));

        String s1 = "hello";
        String s2 = "hello";
        System.out.println(s1 == s2);
    }
}
